﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace SuperCoder
{
    /// <summary>
    /// 配置类；
    /// </summary>
    public class Config
    {
        /// <summary>
        /// 数据库类型
        /// </summary>
        public static  string DB_TYPE = ConfigurationManager.AppSettings["DBType"] as string;

        /// <summary>
        /// 数据库服务器地址
        /// </summary>
        public static  string DB_SERVER = ConfigurationManager.AppSettings["DBServer"] as string;

        /// <summary>
        /// 数据库名称；
        /// </summary>
        public static  string DB_NAME = ConfigurationManager.AppSettings["DBName"] as string;

        /// <summary>
        /// 数据库登陆名
        /// </summary>
        public static  string DB_USERNAME = ConfigurationManager.AppSettings["DBUserName"] as string;

        /// <summary>
        /// 数据库登陆密码
        /// </summary>
        public static string DB_PASSWORD = ConfigurationManager.AppSettings["DBPassWord"] as string;

        /// <summary>
        /// 生成的框架类型
        /// </summary>
        public static  string BUILDFRAMETYPE = ConfigurationManager.AppSettings["BuildFrameType"] as string;

        /// <summary>
        /// 框架命名空间
        /// </summary>
        public static  string FRAMENAMESPACE = ConfigurationManager.AppSettings["FrameNameSpace"] as string;

        /// <summary>
        /// BLL代码生成路径
        /// </summary>
        public static  string BLLCODE_PATH = ConfigurationManager.AppSettings["BLLCodePath"] as string;

        /// <summary>
        /// DAL代码生成路径；
        /// </summary>
        public static  string DALCODE_PATH = ConfigurationManager.AppSettings["DALCodePath"] as string;

        /// <summary>
        /// Model代码生成路径；
        /// </summary>
        public static  string MODELCODE_PATH = ConfigurationManager.AppSettings["ModelCodePath"] as string;

        /// <summary>
        /// IDAL代码生成路径；
        /// </summary>
        public static  string IDALCODE_PATH = ConfigurationManager.AppSettings["IDALCodePath"] as string;

        /// <summary>
        /// DALFactory生成路径；
        /// </summary>
        public static  string DALFACTORY_PATH = ConfigurationManager.AppSettings["DALFactoryCodePath"] as string;

        






    }
}
